import { createBrowserRouter } from "react-router-dom";
import Home from "@/page/home/home";
import About from "@/page/about/about";
import Info from "@/page/info/info";
import List from "@/page/list/list";

const router = createBrowserRouter([
    {
        path: "/",
        element: <Home />,
        children: [
            {
                path: "list",
                element: <List />,
            },
        ]
    },
    {
        path: "/about",
        element: <About />,
    },
    {
        path: "/info/:id",
        element: <Info />,
    },
]);

export default router